﻿@page
@using LocalizeMessagesAndErrors
@using Microsoft.AspNetCore.Mvc.TagHelpers
@model Example1.RazorPages.IndividualAccounts.Pages.AuthUsers.DeleteModel
@inject ISimpleLocalizer SimpleLocalizer

<h1>Delete AuthUser</h1>

<h3>
    @SimpleLocalizer.LocalizeString("Are you sure you want to delete this user?", this)
</h3>
<div>
    <dl class="row">

        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.UserName)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.UserName)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Email)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Email)
        </dd>
    </dl>
    <form method="post">
        @Html.HiddenFor(model => model.UserId)
        <input type="submit" value=@SimpleLocalizer.LocalizeString("Delete", this)
               class="btn btn-danger" />
        <a class="btn btn-secondary" asp-area="" asp-page=".\ListUsers">
            @SimpleLocalizer.LocalizeString("Cancel", this)
        </a>
    </form>
</div>
